import { uniFetch } from './uni-fetch';
import { rsaEncrypt } from '@/utils/rsa';

// 获取未使用
export function getNotTokenList(data) {
	return uniFetch({
		url: '/miniApp/token/getNotUse',
		method: 'get',
		data
	});
}

// 获取已使用
export function getUsedTokenList(data) {
	return uniFetch({
		url: '/miniApp/token/getUsed',
		method: 'get',
		data
	});
}

// 获取已过期
export function getPastTokenList(data) {
	return uniFetch({
		url: '/miniApp/token/getExpired',
		method: 'get',
		data
	});
}

// 获取二维码
export function getQrCode(data) {
	return uniFetch({
		url: '/miniApp/token/getQrCode',
		method: 'get',
		data
	});
}

// 获取通证券详情
export function getTokenDetail(data) {
	return uniFetch({
		url: '/miniApp/token/getDetails',
		method: 'get',
		data
	});
}

// 上传文件接口
export const reqUploadUserAvatar = filePath => fileUpload(filePath);
// 修改用户头像
export const reqUpdateUserInfo = data => uniFetch({ url: '/miniApp/member/updateImgName', method: 'PUT', data });
// 获取提现显示隐藏
export const reqDicToShowWithdrawal = data => uniFetch({ url: '/miniApp/sysDynamicText/selectSysSettingByKey', method: 'GET', data });
// 实名注册
export const reqRealNameRegister = data => uniFetch({ url: '/miniApp/register', method: 'POST', data });
// 获取实名认证状态
export const reqGetRealnameStatus = data => uniFetch({ url: '/miniApp/getAuthStatus', method: 'GET', data });
// 银行卡ocr
export const reqGetbankCardInfo = data => uniFetch({ url: '/miniApp/ocr', method: 'GET', data });
// 绑定银行卡
export const reqBindingbankCard = data => uniFetch({ url: '/miniApp/binding', method: 'POST', data });
// 获取用户绑定银行卡的列表
export const reqBankCardList = data => uniFetch({ url: '/miniApp/selectBankCard', method: 'GET', data });
// 微信小程序ORC身份证
export const reqGetIdCardInfo = data => uniFetch({ url: '/miniApp/idcardOcr', method: 'GET', data });
